package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IPutForwardActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.AddPutForwardReq;
import com.wgts.wgts.netmodle.req.DelPutForwardReq;
import com.wgts.wgts.netmodle.req.UserPutForwardReq;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.PutForwardTypeEntity;

import java.util.List;

public class PutForwardActivityModel implements IPutForwardActivityModel {

    private NetService netService;

    public PutForwardActivityModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initPutForward(HttpResultSubscriber<List<PutForwardTypeEntity>> subscriber) {
        netService.putForwardList(subscriber);
    }

    @Override
    public void putForward(UserPutForwardReq req, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.userPutForward(req, subscriber);
    }

    @Override
    public void delPutForWard(DelPutForwardReq req, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.delPutForWard(req, subscriber);
    }

}
